/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Act Specimen Treatment Code</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A14040 (C-0-T13953-A13954-A14040-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getActSpecimenTreatmentCode()
 * @model extendedMetaData="name='ActSpecimenTreatmentCode'"
 * @generated
 */
public enum ActSpecimenTreatmentCode implements Enumerator {
	/**
	 * The '<em><b>ACID</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ACID_VALUE
	 * @generated
	 * @ordered
	 */
	ACID(0, "ACID", "ACID"),

	/**
	 * The '<em><b>ALK</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ALK_VALUE
	 * @generated
	 * @ordered
	 */
	ALK(1, "ALK", "ALK"),

	/**
	 * The '<em><b>DEFB</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DEFB_VALUE
	 * @generated
	 * @ordered
	 */
	DEFB(2, "DEFB", "DEFB"),

	/**
	 * The '<em><b>FILT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FILT_VALUE
	 * @generated
	 * @ordered
	 */
	FILT(3, "FILT", "FILT"),

	/**
	 * The '<em><b>LDLP</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #LDLP_VALUE
	 * @generated
	 * @ordered
	 */
	LDLP(4, "LDLP", "LDLP"),

	/**
	 * The '<em><b>NEUT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #NEUT_VALUE
	 * @generated
	 * @ordered
	 */
	NEUT(5, "NEUT", "NEUT"),

	/**
	 * The '<em><b>RECA</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RECA_VALUE
	 * @generated
	 * @ordered
	 */
	RECA(6, "RECA", "RECA"),

	/**
	 * The '<em><b>UFIL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #UFIL_VALUE
	 * @generated
	 * @ordered
	 */
	UFIL(7, "UFIL", "UFIL");

	/**
	 * The '<em><b>ACID</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ACID</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ACID
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ACID_VALUE = 0;

	/**
	 * The '<em><b>ALK</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ALK</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ALK
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ALK_VALUE = 1;

	/**
	 * The '<em><b>DEFB</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DEFB</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DEFB
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DEFB_VALUE = 2;

	/**
	 * The '<em><b>FILT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FILT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FILT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int FILT_VALUE = 3;

	/**
	 * The '<em><b>LDLP</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>LDLP</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #LDLP
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int LDLP_VALUE = 4;

	/**
	 * The '<em><b>NEUT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>NEUT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #NEUT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int NEUT_VALUE = 5;

	/**
	 * The '<em><b>RECA</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RECA</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RECA
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RECA_VALUE = 6;

	/**
	 * The '<em><b>UFIL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>UFIL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #UFIL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int UFIL_VALUE = 7;

	/**
	 * An array of all the '<em><b>Act Specimen Treatment Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ActSpecimenTreatmentCode[] VALUES_ARRAY =
		new ActSpecimenTreatmentCode[] {
			ACID,
			ALK,
			DEFB,
			FILT,
			LDLP,
			NEUT,
			RECA,
			UFIL,
		};

	/**
	 * A public read-only list of all the '<em><b>Act Specimen Treatment Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ActSpecimenTreatmentCode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Act Specimen Treatment Code</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActSpecimenTreatmentCode get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActSpecimenTreatmentCode result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Specimen Treatment Code</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActSpecimenTreatmentCode getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActSpecimenTreatmentCode result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Specimen Treatment Code</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActSpecimenTreatmentCode get(int value) {
		switch (value) {
			case ACID_VALUE: return ACID;
			case ALK_VALUE: return ALK;
			case DEFB_VALUE: return DEFB;
			case FILT_VALUE: return FILT;
			case LDLP_VALUE: return LDLP;
			case NEUT_VALUE: return NEUT;
			case RECA_VALUE: return RECA;
			case UFIL_VALUE: return UFIL;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private ActSpecimenTreatmentCode(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //ActSpecimenTreatmentCode
